
define(function (require, exports, module) {

	var $ = require('jquery');

	$('#loginForm').on('submit', function () {

		var data = $(this).serialize();

		$.ajax({
			url: 'http://api.botue.com/login',
			type:'post',
			data: data,
			success: function (info) {
				console.log(info);
				if(info.code == 200) {
					location.href = './index.html';
				}
			}
		})

		return false;
	});
})